package com.demo.entity;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

@ToString
@Data
public class Book implements Serializable {
    @Id
    private String id;
    @Field("author")
    private String author;
    @Field("price")
    private Double price;
}
